import request from "/@/utils/request"

export function fetchList(query?: Object) {
    return request({
        url: '/blood/bloodxCustomerDrug/page',
        method: 'get',
        params: query
    })
}

export function addObj(obj?: Object) {
    return request({
        url: '/blood/bloodxCustomerDrug',
        method: 'post',
        data: obj
    })
}

export function getObj(id?: string) {
    return request({
        url: '/blood/bloodxCustomerDrug/' + id,
        method: 'get'
    })
}

export function delObjs(ids?: Object) {
    return request({
        url: '/blood/bloodxCustomerDrug',
        method: 'delete',
        data: ids
    })
}

export function putObj(obj?: Object) {
    return request({
        url: '/blood/bloodxCustomerDrug',
        method: 'put',
        data: obj
    })
}

// /admin/bloodxDrug/getDrugList
export function getDrugList() {
    return request({
        url: '/blood/bloodxDrug/getDrugList',
        method: 'get'
    })
}


// /admin/bloodxCustomer/drugFeedback
export function drugFeedback(obj?: Object) {
    return request({
        url: '/admin/bloodxCustomer/drugFeedback',
        method: 'post',
        params: obj
    })
}


export function getDrugLogList(id?: string) {
    return request({
        url: '/admin/bloodxCustomerDrugLog/getCustomerList/' + id,
        method: 'get'
    })
}

export function drugFeedbackSpecial(obj?: Object) {
    return request({
        url: '/admin/bloodxCustomerSpecial/drugFeedback',
        method: 'post',
        params: obj
    })
}

// /admin/bloodxCustomerDrug/updateStatus
export function updateStatus(obj?: Object) {
    return request({
        url: '/admin/bloodxCustomerDrug/updateStatus',
        method: 'post',
        data: obj
    })
}


///admin/bloodxCustomerDrug/addCustomerDrug
export function addCustomerDrug(obj?: Object) {
    return request({
        url: '/admin/bloodxCustomerDrug/addCustomerDrug',
        method: 'get',
        params: obj
    })
}
